package designpatterns.command;


/**
 * @author LiDong
 * @version 1.0.0
 * @createTime 2/15/2022 8:41 AM
 */
public class BuyStock implements Order {

    private final Stock abcStock;

    public BuyStock(Stock abcStock) {
        this.abcStock = abcStock;
    }

    @Override
    public void execute() {
        abcStock.buy();
    }
}
